﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeleteContent.aspx.cs" MasterPageFile="../masterpages/umbracoDialog.Master"  Inherits="SimonAntony.uMultiDeleteContent.dialogs.DeleteContent" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   <script type="text/javascript">
       function hidePopup() {
           UmbClientMgr.closeModalWindow(id);
       }
    </script>
</asp:Content>

    


<asp:Content ContentPlaceHolderID="body" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlError" runat="server" CssClass="error" Visible="false">
                <p>Content Deleted - please close this dialog and refresh your tree to see the results</p>
            </asp:Panel>
            <div id="ContainerDiv" runat="server">
            <h2 class="propertypaneTitel">
                Step 1: Choose Document Type to filter by</h2>
            <p class="propertypaneTitel">
                Select Document Type to filter upon <asp:DropDownList ID="ddlDocTypes" 
                    runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlDocTypes_SelectedIndexChanged" 
                    ViewStateMode="Enabled"></asp:DropDownList>&nbsp;<asp:Button ID="btnFilter" 
                    runat="server" Text="Refresh" onclick="btnFilter_Click" /></p>
            <asp:Panel ID="pnlSingle" runat="server" Visible="false">
                <h2 class="propertypaneTitel">Step 2: Select documents to delete</h2>
                <div class="propertypane" style=''>
                    <div>
                        <div class="propertyItem" style=''>
                                <asp:CheckBoxList ID="chkSelectItemsToDelete" runat="server" RepeatColumns="2"></asp:CheckBoxList>
                        </div>
                        <div class="propertyItem" style=''>
                            <div class="propertyItemheader">
                                &nbsp;
                            </div>
                            <div class="propertyItemContent">
                                <asp:Button ID="btnDeleteData" runat="server" Text="Delete" 
                                    ValidationGroup="delete" onclick="btnDeleteData_Click" OnClientClick="hidePopup()" />
                                    <a href="#" onclick="UmbClientMgr.closeModalWindow();"><%=umbraco.ui.Text("cancel")%></a>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
           </div>
     
        </ContentTemplate>
    </asp:UpdatePanel>


</asp:Content>